package com.cskaoyan.controller.wx_brand_controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.wx_vo.brand.WxBrandDetailVO;
import com.cskaoyan.bean.wx_vo.brand.WxBrandInfoVO;
import com.cskaoyan.service.wx_brand_service.WxBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description：
 * @author: 曹旭
 * @date: 2022/5/10 08:00
 */
@RestController
@RequestMapping("wx/brand")
public class WxBrandController {
    @Autowired
    WxBrandService wxBrandService;

    @RequestMapping("list")
    public BaseRespVo list(Integer page, Integer limit){
        WxBrandInfoVO wxBrandInfoVO = this.wxBrandService.list(page, limit);
        return BaseRespVo.ok(wxBrandInfoVO);
    }

    @RequestMapping("detail")
    public BaseRespVo detail(Integer id){
        WxBrandDetailVO wxBrandDetailVO = this.wxBrandService.detail(id);
        return BaseRespVo.ok(wxBrandDetailVO);
    }
}